package com.cyy.common.pojo.dto.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 下拉框
 * @author caoyunyou
 */
@Data
public class OptionDto<L, V> implements Serializable {
    @Serial
    private static final long serialVersionUID = -1674492566197372678L;

    @Schema(description = "显示")
    private L label;

    @Schema(description = "值")
    private V value;

    @Schema(description = "子项")
    private List<OptionDto<V, L>> children;
}
